<?php
namespace EasyPhpWeb;

class View{
    public static function render($template, $params){
        $viewPath = dirname(__DIR__) . "/App/View/";

        extract($params);

        ob_start();
        include($viewPath. $template);
        $content = ob_get_contents();
        ob_clean();

        return $content;
    }
}